package com.roger.springcloudGreenwich.oauth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roger.springcloudGreenwich.oauth.bean.LoginRequest;
import com.roger.springcloudGreenwich.oauth.bean.SecurityUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;


@Mapper
@Component
public interface UsersMapper extends BaseMapper<SecurityUser> {

    SecurityUser selectUserByUserName(String username);

    SecurityUser login(LoginRequest loginRequest);

    String selectUserRolesByUserId(Long userId);

}
